//
//  BYCountDownButton.h
//  ZhaoQiPei
//
//  Created by 找汽配ios开发 on 15/12/28.
//  Copyright © 2015年 祥运. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "XYSingleton.h"

@interface XYCountDownButtonManager : NSObject

AS_SINGLETON(XYCountDownButtonManager)

@property (nonatomic, assign) NSInteger countDownNumber;
@property (nonatomic, weak) UIButton * button;
@property (nonatomic, copy) void(^initializationBlock)(UIButton * button); // 按钮初始状态
@property (nonatomic, copy) void(^preparationBlock)(UIButton * button); // 按钮即将倒计时
@property (nonatomic, copy) void(^countingBlock)(UIButton * button, NSInteger number); // 按钮正在倒计时
@property (nonatomic, copy) void(^completionBlock)(UIButton * button); // 按钮完成倒计时
@property (nonatomic, copy) void(^clickedBlock)(UIButton * button); // 按钮按下

- (void)start;
- (void)preparation;
- (void)completion;

@end
